﻿@model KRM.Core.CreateTrigger

@if (!string.IsNullOrEmpty(ViewBag.msg) && ViewBag.msg == "success")
{
    <div class="alert alert-success">
        <button type="button" class="close" data-dismiss="alert">×</button>
        <strong>Success.</strong> Create new success!
    </div>
}
else
{
    <div class="alert alert-error">
        <button type="button" class="close" data-dismiss="alert">×</button>
        @Html.ValidationMessageFor(model => model.DateStart)
        @Html.ValidationMessageFor(model => model.Every)
        @Html.ValidationMessageFor(model => model.Minutes)
        @Html.ValidationMessageFor(model => model.Hours)
        @Html.ValidationMessageFor(model => model.StopMinutes)
        @Html.ValidationMessageFor(model => model.ExpiredDate)
    </div>
}